<?php

namespace Topxia\WebBundle\Extensions\DataTag;

use Topxia\WebBundle\Extensions\DataTag\DataTag;

class ThemeDataTag extends BaseDataTag implements DataTag  
{
    /**
     * 获取主题控制器ThemeController提供的变量
     * 
     * @param  array $arguments 参数（一般为空）
     * @return array 
     */
    public function getData(array $arguments)
    {   
        $config = $this->getThemeService()->getCurrentThemeConfig();
        
        return $config;
    }

    protected function getThemeService()
    {
        return $this->getServiceKernel()->createService('Theme.ThemeService');
    }
}